(function ($) {
	'use strict';
	
	
	var TitleBar = Backbone.View.extend({
		tagName: "div",
		className: "BBjTitleBar",
		events: {
		},
		model: "",
		template: _.template($_T.TitleBar),
		initialize: function () {
			// console.log("###BBjTitleBar initialize");
			OKEvents.on('TitleBarChange', this.hasChange, this);
		},
		hasChange:function(model){
			// console.log(model);
			this.model = model;
			this.render();
		},
		render: function() {
			this.$el.html(this.template(this.model));
			return this;
		}
	});
	$_V.TitleBar = TitleBar;
})(jQuery);